﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Chronos.ConsoleTestHarness
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                using (datastoreEntities container = new datastoreEntities("datastoreEntities"))
                {
                    TextMessage t1 = new TextMessage() { Body = "body baby", From = "07866601066", Received = DateTime.Now };
                    container.AddToTextMessage(t1);
                    container.SaveChanges();
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }

            Console.WriteLine("Press any key to exit");
            Console.ReadLine();          
        }
    }
}
